projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a726bc
)
wayland: Destroy the offer on gdk_drop_finish()
author
Benjamin Otte
<otte@redhat.com>
Sun, 16 Feb 2020 13:14:27 +0000
(14:14 +0100)
committer
Benjamin Otte
<otte@redhat.com>
Sun, 16 Feb 2020 19:10:30 +0000
(20:10 +0100)
Otherwise the compositor won't be aware the dnd failed and will in turn
not notify the drag source.
gdk/wayland/gdkdrop-wayland.c
patch
|
blob
|
history
diff --git
a/gdk/wayland/gdkdrop-wayland.c
b/gdk/wayland/gdkdrop-wayland.c
index a638b6314f6e52798e5813af17b99b4ed363c5c0..f9ed7de123f65db1d11904d0145fac362fe88264 100644
(file)
--- a/
gdk/wayland/gdkdrop-wayland.c
+++ b/
gdk/wayland/gdkdrop-wayland.c
@@
-177,6
+177,8
@@
gdk_wayland_drop_finish (GdkDrop *drop,
WL_DATA_OFFER_FINISH_SINCE_VERSION)
wl_data_offer_finish (wayland_drop->offer);
}
+
+ g_clear_pointer (&wayland_drop->offer, wl_data_offer_destroy);
}
static void